package cc.rengu.igas.route.common.enums;

/**
 * 业务响应码枚举类
 *
 * @author lizhangtao
 * @version 1.0
 * @date 20200708
 */
public enum RespCodeEnum {
    /**
     * 成功应答码
     */
    TRANS_SUCCESS("00000000", "交易成功"),
    /**
     * 报文检查失败
     */
    MSG_VALID_CHECK_ERROR("ER11RT01", "报文检查失败"),
    /**
     * 渠道信息不存在
     */
    CHANNELINFO_NOT_EXIT_ERROR("ER11RT02", "渠道信息不存在"),
    /**
     * 路由规则信息不存在
     */
    RULECFG_NOT_EXIT_ERROR("ER11RT03", "路由规则信息不存在"),
    /**
     * 调用业务系统处理失败
     */
    CALL_BIZ_SERVICE_ERROR("ER12RT04", "调用业务系统处理失败"),
    /**
     * 系统超时
     */
    TIME_OUT_ERROR("ER129998", "系统超时"),
    /**
     * 系统异常
     */
    SYSTEM_ERROR("ER129999", "系统异常");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
